//ku9JS交流群424765458


function main(item) {
    let url = item["url"];
    let id = ku9.getQuery( url,  "id" );
    const jsonUrl = "http://p.ytelc.com/169l/jx/jiujiang.php?id=" + id ;
    const headers = {'User-Agent': 'Mozilla/5.0',
'Referer': `http://p.ytelc.com/169l/jx/jiujiang.php?id=${id}`};
    let playData =  ku9.get(jsonUrl, JSON.stringify(headers));
    let regex = /<source src="(https:\/\/.+?)"/;
    let match = playData["match"](regex);
    let finalUrl = match[1];
    return JSON["stringify"]({
        url: finalUrl,headers:headers
    })
}